import { useCookies } from "@vueuse/integrations/useCookies";

//储存在Cookie中的标签的数据key
const TABLE_LIST_KEY = 'tabList'
const cookie = useCookies()

//获取tabList
export function getTabList() {
    return cookie.get(TABLE_LIST_KEY)
}

//将tabList储存在cookie中
export function setTabList(tabList) {
    return cookie.set(TABLE_LIST_KEY, tabList)
}